<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工详情</title>
<script type="text/javascript" src="../js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="../js/layer.js"></script>
<script type="text/javascript" src="../js/jquery.cookie.js"></script>
<script type="text/javascript" src="../js/layer.min.js"></script>

</head>
<body>
	<form action="userEditUser" name="add" method="post">
				<input type="hidden" name="user.userId" value="${user.userId}">
				<input type="hidden" name="user.userPassword"
					value="${user.userPassword}"> <input type="hidden"
					name="user.picturePath" value="${user.picturePath}">


				<table>
					<tr>
						<td colspan="6"><b>系统账号信息</b></td>
					</tr>
					<tr>
						<td>用户名：</td>
						<td colspan="4"><input type="text" name="user.userName"
							value="${user.userName}" /></td>


					</tr>

					<tr>
						<td>所属部门：</td>
						<td colspan="5"><select name="user.departId" disabled="disabled">
								<s:iterator value="deptList" var="dl">
									<s:if test="%{#dl.deptId==user.departId}">
										<option value="${dl.deptId}" selected="selected">${dl.deptName}</option>
									</s:if>
									<s:else>
										<option value="${dl.deptId}">${dl.deptName}</option>
									</s:else>

								</s:iterator>
						</select> <a href="showChangePath?user.userId=${user.userId }">查看部门调动记录</a></td>
					</tr>
					<tr>
						<td colspan="6"><b>员工基本信息</b></td>
					</tr>
					<tr>
						<td>姓&nbsp;名：</td>
						<td><input type="text" name="user.empName"
							value="${user.empName}"></td>
						<td>员工编号：</td>
						<td><input type="text" name="user.mpcode"
							value="${user.mpcode}" disabled="disabled"></td>
						<td>身份证号：</td>
						<td><input type="text" name="user.idcard"
							value="${user.idcard}" disabled="disabled"></td>
					</tr>
					<tr>
						<td>性别：</td>
						<td><s:if test="user.gender==0">
								<input type="radio" name="user.gender" value="1" />男
						<input type="radio" name="user.gender" value="0" checked="checked" />女
						
							</s:if> <s:else>
								<input type="radio" name="user.gender" value="1"
									checked="checked" />男
							<input type="radio" name="user.gender" value="0" />女
							</s:else></td>
						<td>籍&nbsp;贯</td>
						<td><input type="text" name="user.userNative" value="${user.userNative}"/></td>
						<td>民&nbsp;族</td>
						<td><input type="text" name="user.nation" value="${user.nation}"/></td>
					</tr>
					<tr>
						<td>备&nbsp;注：</td>
						<td colspan="5"><textarea rows="5" cols="50" name="user.memo">${user.memo}</textarea>
						</td>
					</tr>
					<tr>
						<td></td>
						<td colspan="5"><input type="submit" value="保存"></td>
					</tr>
				</table>
			</form>	
</body>
</html>